<?php

!defined('BASE_PATH')&&die('forbidden');

if (!class_exists('core_auth_signbase',false)) {
	include(core::parse_class_path('core_auth_signbase'));
}

class core_auth_sign extends core_auth_signbase {
	
	private static $_secret_salt = 'secret_salt_9527';
	
	public static function get_secret_salt(){
		
		return self::$_secret_salt;
		
	}
	
	public static function set_secret_salt($secret_salt){
		
		self::$_secret_salt = $secret_salt;
		
	}
	
	public static function add_signature($string, $expire = 0){
		
		return parent::add_signature($string, NOW, (NOW + $expire), self::$_secret_salt);
		
	}
	
	public static function remove_signature($string){
		
		return isset($string{52}) ? parent::remove_signature($string, self::$_secret_salt) : false;
		
	}
	
}

?>